package com.czsth.home.controllers;

@Controller
    @RequestMapping("/home")
    public static class HelloController {

        @RequestMapping("/hello")
        public ModelAndView Add(HttpServletRequest request, HttpServletResponse response) {
            User user = new User();
            user.setUsername("buru");
            user.setPassword("1234");
            List<User> users = new ArrayList<User>();
            users.add(user);
            users.add(user);
            return new ModelAndView("hello", "users", users);
        }

    }